package com.qcby.controller;

import com.qcby.entity.User;
import com.qcby.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

//@RequestMapping("/hello")
@Controller
public class PageController {

    @Autowired
    private UserService userService;

    @RequestMapping("/m1")
    @ResponseBody
    public List<User> getAll(){
        return userService.findAll();
    }
    @RequestMapping("/lanebank")
    public String lanebank(){
        return "lanebank";
    }
    @RequestMapping("/lanebankInformation")
    public String lanebankInformation(){
        return "lanebank_information";
    }
    @RequestMapping("/aaa")
    public String aaa(){
        return "aaa";
    }
    @RequestMapping("/b")
    public String b(){
        return "b";
    }
    @RequestMapping("/shopManagement")
    public String shopManagement(){
        return "shop_management";
    }
    @RequestMapping("/checkRecord")
    public String checkRecord(){
        return "check_record";
    }
    @RequestMapping("/exploreScript")
    public String exploreScript(){
        return "explore_script";
    }
    @RequestMapping("/userInformation")
    public String userInformatinon(){
        return "user_information";
    }
    @RequestMapping("/shopRecommendation")
    public String storeRecommendation(){
        return "shop_recommendation";
    }
    @RequestMapping("/moments")
    public String Momnents(){
        return "moments";
    }
    @RequestMapping("/shopExplore")
    public String shopExplore(){
        return "shop_explore";
    }
    @RequestMapping("/adminLogin")
    public String adminLogin(){
        return "admin_login";
    }
    @RequestMapping("/shopKeep")
    public String shopKeep(){
        return "shop_keep";
    }
    @RequestMapping("/shopDetail")
    public String shopDetail(){
        return "shop_detail";
    }
    @RequestMapping("/momentDetail")
    public String momentDetail(){
        return "moment_detail";
    }
    @RequestMapping("/userLogin")
    public String userLogin(){
        return "userLogin";
    }
    @RequestMapping("/register")
    public String register(){
        return "register";
    }
    @RequestMapping("/forgetPassword")
    public String forgetPassword(){
        return "forget_password";
    }
    @RequestMapping("/iframeClient")
    public String iframeClient(){
        return "iframe_client";
    }
    @RequestMapping("/phoneLogin")
    public String phoneLogin(){
        return "phone_login";
    }
    @RequestMapping("/homePageClient")
    public String homePageClient(){
        return "home_page_client";
    }
    @RequestMapping("/personalCollection")
    public String personalCollection(){
        return "personal_collection";
    }
    @RequestMapping("checkings")
    public String checkings(){
        return "checkings";
    }
    @RequestMapping("/userManagement")
    public String userManagement(){
        return "user_management";
    }
    @RequestMapping("/UserOwnerAduit")
    public String shopOwnerAduit(){
        return "UserOwnerAduit";
    }
    @RequestMapping("/ShopAduit")
    public String shopAduit(){
        return "ShopAduit";
    }
    @RequestMapping("/UserOwnerApplication")
    public String shopOwnerApplication(){
        return "UserOwnerApplication";
    }
    @RequestMapping("/ShopAduitApplication")
    public String ShopAduitApplication(){
        return "ShopAduitApplication";
    }
    @RequestMapping("/UserOwnerShops")
    public String UserOwnerShops(){
        return "userOwnerShops";
    }
    @RequestMapping("/UserOwnerShopDetail")
    public String UserOwnerShopDetail(){
        return "ShopAduitEdit";
    }
}
